class SwapInstance < ActiveRecord::Base
	belongs_to :swap
	
	def recipient
		users.find(recipient_id)
	end
	
	def sender
		users.find(sender_id)
	end
	
	def completed
		find(:conditions "sent = 1 AND recieved = 1")
	end
	
	def incomplete
		find(:conditions "sent = 0 OR recieved = 0")
	end
	
	def pending
		
	end
	
	def overdue
	
	end
end
